import QtQuick 1.0
 
Item
{
    id: my_container
    width: 80
    height: 20
    property alias text: my_text.text
    property alias color: my_text.color
    property alias style: my_text.style
    property string org_color:color;

    Text
    {
        id: my_text
        anchors.centerIn: parent
        font.pixelSize: 24
        styleColor: "red"; smooth: true
        MouseArea
        {
            anchors.fill: parent
            onClicked:
            {
                if(my_text.color!="#000000")
                {
                    org_color=my_text.color;
                    my_text.color="black";
                }
                else
                    my_text.color=org_color
            }
        } 
    }
}